<template>
  <div class="divider" :class="'txt-'+align" :style="{color:colors,borderColor:borders}">
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    align: {
      type: String,
      default: 'center'
    },
    colors:{
      type:String,
      default:'black'
    },
    borders:{
      type:String,
      default:'black'
    }
  }
}
</script>

<style scoped>
.divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #969799;
  font-size: 14px;
  line-height: 24px;
  border-color: #ebedf0;
  border-style: solid;
  border-width: 0;
  /* border-color: rgb(25, 137, 250);
  color: rgb(25, 137, 250); */
  padding: 0px 16px;
}

.divider::before,
.divider::after {
  display: block;
  flex: 1;
  box-sizing: border-box;
  height: 1px;
  border-color: inherit;
  border-style: inherit;
  border-width: 1px 0 0;
  transform: scaleY(0.5)
}

.divider.txt-right::after,.divider.txt-left::before{
  max-width: 10%;
}

.divider::before {
  content: "";
  margin-right: 16px;
}

.divider::after {
  content: "";
  margin-left: 16px;
}
</style>